import {
    createRouter,   // 创建路由的api
    createWebHistory,   // 创建路由的历史模式
    RouteRecordRaw 
} from "vue-router";

const routers: Array<RouteRecordRaw> = [
    {
        path: "/",
        component: () => import("../pages/Home.vue")
    },
];

const router = createRouter({
    history: createWebHistory(),
    routes: routers
});

export default router